﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.Bom.Dto
{
  public class GetMaterialListInput: PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 设计bom专有标识(包含 设计bom变更组件显示 不传MaterialPropertylJBs 默认0)
        /// </summary>
        public int  MaterialPropertyBs { get; set; }
        /// <summary>
        /// 物料代码
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
